package top.toptimus.dto.recipe;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 已生效工艺设计项目以及附加信息
 *
 * @author gaoyu
 */
@NoArgsConstructor
@Data
public class CraftDesignStyleRelationAndSaleAttributeDTO {
    private CraftDesignStyleRelationDTO craftDesignStyleRelationDTO;    //  设计点信息
    private String styleCode;   //  款号
    private Integer salesCount; //  销量
    private String styleTag;    //  款式描述
    private String styleSexFlag;   //  男 女 男童 女童
    private String saleStyleCode;   //  款号，销售定义，对应尺寸组和设计点组

    public CraftDesignStyleRelationAndSaleAttributeDTO(
            CraftDesignStyleRelationDTO craftDesignStyleRelationDTO,
            Integer salesCount,
            String styleTag,    //  款式描述
            String styleSexFlag,   //  男 女 男童 女童
            String saleStyleCode   //  款号，销售定义，对应尺寸组和设计点组
    ) {
        this.craftDesignStyleRelationDTO = craftDesignStyleRelationDTO;
        this.styleCode = craftDesignStyleRelationDTO.getStyleCode();
        this.salesCount = salesCount;
        this.styleTag = styleTag;
        this.styleSexFlag = styleSexFlag;
        this.saleStyleCode = saleStyleCode;
    }

    public CraftDesignStyleRelationAndSaleAttributeDTO(
            CraftDesignStyleRelationDTO craftDesignStyleRelationDTO,
            Integer salesCount
    ) {
        this.craftDesignStyleRelationDTO = craftDesignStyleRelationDTO;
        this.styleCode = craftDesignStyleRelationDTO.getStyleCode();
        this.salesCount = salesCount;
    }
}
